package zhibi.wechat.mp.extra.pojo;

import zhibi.utils.DateUtils;
import zhibi.wechat.mp.domain.Msg;

import java.util.Date;

public class MsgPo extends Msg {


    private String toUserName;
    private String fromUserName;

    private String createTimeStr;

    /**
     * 时间转换
     *
     * @return
     */
    public String getCreateTimeStr() {
        return DateUtils.formatDate(new Date(getCreateTime() * 1000));
    }

    public String getToUserName() {
        return toUserName;
    }

    public void setToUserName(String toUserName) {
        this.toUserName = toUserName;
    }

    public String getFromUserName() {
        return fromUserName;
    }

    public void setFromUserName(String fromUserName) {
        this.fromUserName = fromUserName;
    }
}
